﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace WindowsApplication1
{
    //<add key="区名称" value="District" />
    //<add key="街道名称" value="Street" />
    //<add key="社区名称" value="Community" />
    //<add key="区编号" value="DistrictID" />
    //<add key="街道编号" value="StreetID" />
    //<add key="社区编号" value="CommunitID" />
    //<add key="建筑编号" value="BuildingID" />
    //<add key="用电建筑编号" value="BuildingID" />
    //<add key="街道图层" value="街道" />
    //<add key="社区图层" value="社区" />
    //<add key="建筑图层" value="建筑" />
    //<add key="用电建筑图层" value="用电建筑" />
    //<add key="用电建筑信息" value="用电建筑信息" />
    //<add key="图层路径" value="dls.mxd" />
    class Settings
    {
        private static string qumingcheng;

        public static string 区名称
        {
            get
            {
                return qumingcheng;
            }
        }
        private static string jiedaomingcheng;

        public static string 街道名称
        {
            get
            {
                return jiedaomingcheng;
            }
        }
        private static string shequmingcheng;

        public static string 社区名称
        {
            get
            {
                return shequmingcheng;
            }
        }
        private static string qubianhao;

        public static string 区编号
        {
            get
            {
                return qubianhao;
            }
        }
        private static string jiedaobianhao;

        public static string 街道编号
        {
            get
            {
                return jiedaobianhao;
            }
        }
        private static string jianzhubianhao;

        public static string 建筑编号
        {
            get
            {
                return jianzhubianhao;
            }
        }
        private static string yongdianjianzhubianhao;

        public static string 用电建筑编号
        {
            get
            {
                return yongdianjianzhubianhao;
            }
        }
        private static string jiedaotuceng;

        public static string 街道图层
        {
            get
            {
                return jiedaotuceng;
            }
        }
        private static string yongdianjianzhuxinxi;

        public static string 用电建筑信息
        {
            get
            {
                return yongdianjianzhuxinxi;
            }
        }
        private static string jianzhutuceng;

        public static string 建筑图层
        {
            get
            {
                return jianzhutuceng;
            }
        }
        private static string yongdianjianzhutuceng;

        public static string 用电建筑图层
        {
            get
            {
                return yongdianjianzhutuceng;
            }
        }
        private static string tucenglujing;

        public static string 图层路径
        {
            get
            {
                return tucenglujing;
            }
        }
        private static string shequtuceng;
        private static string shequbianhao;

        public static string 社区图层
        {
            get
            {
                return shequtuceng;
            }
        }

        public static string 社区编号
        {
            get { return shequbianhao; }
        }

        static Settings()
        {
            qumingcheng = ConfigurationManager.AppSettings["区名称"];
            jiedaomingcheng = ConfigurationManager.AppSettings["街道名称"];
            shequmingcheng = ConfigurationManager.AppSettings["社区名称"];
            qubianhao = ConfigurationManager.AppSettings["区编号"];
            jiedaobianhao = ConfigurationManager.AppSettings["街道编号"];
            shequbianhao = ConfigurationManager.AppSettings["社区编号"];
            jianzhubianhao = ConfigurationManager.AppSettings["建筑编号"];
            yongdianjianzhubianhao = ConfigurationManager.AppSettings["用电建筑编号"];
            jiedaotuceng = ConfigurationManager.AppSettings["街道图层"];
            shequtuceng = ConfigurationManager.AppSettings["社区图层"];
            jianzhutuceng = ConfigurationManager.AppSettings["建筑图层"];
            yongdianjianzhutuceng = ConfigurationManager.AppSettings["用电建筑图层"];
            yongdianjianzhuxinxi = ConfigurationManager.AppSettings["用电建筑信息"];
            tucenglujing = ConfigurationManager.AppSettings["图层路径"];
        }
    }
}
//<add key="区名称" value="District" />
//<add key="街道名称" value="Street" />
//<add key="社区名称" value="Community" />
//<add key="区编号" value="DistrictID" />
//<add key="街道编号" value="StreetID" />
//<add key="社区编号" value="CommunitID" />
//<add key="建筑编号" value="BuildingID" />
//<add key="用电建筑编号" value="BuildingID" />
//<add key="街道图层" value="街道" />
//<add key="社区图层" value="社区" />
//<add key="建筑图层" value="建筑" />
//<add key="用电建筑图层" value="用电建筑" />
//<add key="用电建筑信息" value="用电建筑信息" />
//<add key="图层路径" value="dls.mxd" />